#ifndef _RUNTIME_INFO_H_
#define _RUNTIME_INFO_H_
#include <string>
class FileVersion{
private:
	std::basic_string<TCHAR> m_FilePath;
	VS_FIXEDFILEINFO         m_VersionInfo;
	DWORD                    m_dwLastError;
	DWORD                    m_dwMajorVersion;
	DWORD                    m_dwMinorVersion;
	DWORD                    m_dwReleaseNumber;
	DWORD                    m_dwBuildNumber;
public:
	FileVersion(LPCTSTR lpszFilePath);
	VOID CheckVersionInfo();
	DWORD GetMajorVersion();
	DWORD GetMinorVersion();
	DWORD GetReleaseNumber();
	DWORD GetBuildNumber();
	static DWORD GetFileVersion(LPCTSTR lpszFilePath,VS_FIXEDFILEINFO *pvsf );


};

class RuntimeInfo
{
private:

	std::basic_string<TCHAR> m_RegistryPath;
	FileVersion              m_IEVersion;

public:
	RuntimeInfo(LPCTSTR lpszFilePath,LPCTSTR lpszRegistryPath);
	FileVersion & GetIEVersion(){ return m_IEVersion;};
	~RuntimeInfo(void);
public:
};

#endif
